package com.health.db.dao.order.impl;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.order.IMedicalTreatRecordDao;
import com.health.db.mapper.MedicalTreatRecordMapper;
import com.health.db.model.MedicalTreatRecordWithBLOBs;

public class MedicalTreatRecordDaoImpl extends ServiceInterface implements IMedicalTreatRecordDao {

	private MedicalTreatRecordMapper medicalTreatRecordMapper;
	
	
	@Override
	public int insert( MedicalTreatRecordWithBLOBs record) {

		return medicalTreatRecordMapper.insert(record);
	}

	

	/**
	 * @return the medicalTreatRecordMapper
	 */
	public MedicalTreatRecordMapper getMedicalTreatRecordMapper() {
		return medicalTreatRecordMapper;
	}


	/**
	 * @param medicalTreatRecordMapper the medicalTreatRecordMapper to set
	 */
	public void setMedicalTreatRecordMapper(
			MedicalTreatRecordMapper medicalTreatRecordMapper) {
		this.medicalTreatRecordMapper = medicalTreatRecordMapper;
	}



	@Override
	public int deleteByOrderId(Long orderId) {
		// TODO Auto-generated method stub
		return medicalTreatRecordMapper.deleteByOrderId(orderId);
	}

}
